import request from '@/utils/request'

// 查询合作单位-企业资质列表
export function listQualification(query) {
  return request({
    url: '/common/qualification/list',
    method: 'get',
    params: query
  })
}

// 查询合作单位-企业资质详细
export function getQualification(id) {
  return request({
    url: '/common/qualification/' + id,
    method: 'get'
  })
}

// 新增合作单位-企业资质
export function addQualification(data) {
  return request({
    url: '/common/qualification',
    method: 'post',
    data: data
  })
}

// 修改合作单位-企业资质
export function updateQualification(data) {
  return request({
    url: '/common/qualification',
    method: 'put',
    data: data
  })
}

// 删除合作单位-企业资质
export function delQualification(id) {
  return request({
    url: '/common/qualification/' + id,
    method: 'delete'
  })
}
